THIRD LOAN MODIFICATION AND WAIVER AGREEMENT