THIRD AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT AND FIRST AMENDMENT TO AMENDED AND RESTATED US SECURITY AGREEMENT