SECOND AMENDMENT TO THE CREDIT AGREEMENT AND FIRST AMENDMENT TO THE GUARANTEE AND COLLATERAL AGREEMENT