Third Amendment to Second Amended and Restated Credit Agreement and First Amendment to Second Amended and Restated Pledge and Security Agreement