AMENDMENT NO. 5 AND CONSENT TO CREDIT AGREEMENT