CONSENT AND WAIVER AGREEMENT AND FIRST AMENDMENT TO CREDIT AGREEMENT