FIRST AMENDMENT AND CONSENT TO CREDIT AGREEMENT AND FIRST AMENDMENT TO SECURITY AGREEMENT