WAIVER, CONSENT AND AMENDMENT TO CREDIT AGREEMENT