WAIVER AND AMENDMENT NO. 3 TO AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT TO LENDER WARRANTS AND WARRANT PURCHASE AGREEMENT