AMENDMENT NO. 3 TO SECOND AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT NO. 1 TO SECURITY AGREEMENTS