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