SECOND AMENDMENT TO THIRD AMENDED AND RESTATED CREDIT AGREEMENT AND FIRST AMENDMENT TO THIRD AMENDED AND RESTATED GUARANTEE AGREEMENT