SECOND AMENDMENT TO CREDIT AGREEMENT AND AMENDMENT TO GUARANTY AND COLLATERAL AGREEMENT