THIRD AMENDMENT TO, AND WAIVER UNDER, CREDIT AGREEMENT