FIRST AMENDMENT TO CREDIT AGREEMENT, SECURITY AGREEMENT, AND WAIVER