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