AMENDMENT NO. 1 TO THE THIRD AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT NO.1 TO THE SECURITY AGREEMENT