SECOND AMENDMENT, WAIVER AND EXCHANGE AGREEMENT