AMENDMENT NO. 2 TO CREDIT AND GUARANTY AGREEMENT AND WAIVER AGREEMENT