AMENDMENT NUMBER THREE TO AMENDED AND RESTATED CREDIT AGREEMENT, WAIVER AND EXTENSION