AMENDMENT NO. 2 TO TERM LOAN CREDIT AGREEMENT, CONSENT AND WAIVER