FIFTH AMENDMENT AND WAIVER AGREEMENT