AMENDMENT NO. 3 AND WAIVER TO CREDIT AGREEMENT