AMENDMENT NO. 2 TO LOAN, GUARANTY AND SECURITY AGREEMENT