Amendment No. 2 to Debenture and Warrant Purchase Agreement