SECOND AMENDMENT AND LIMITED WAIVER TO LOAN, GUARANTY AND SECURITY AGREEMENT