THIRD AMENDMENT TO NOTE PURCHASE AND PRIVATE SHELF AGREEMENT