AMENDMENT NO. 2 TO CREDIT AGREEMENT AND LIMITED CONSENT AND WAIVER