THIRD AMENDMENT TO CREDIT AGREEMENT AND SECOND AMENDMENT TO GUARANTEE AND COLLATERAL AGREEMENT