FIRST AMENDMENT TO CREDIT AGREEMENT AND EXTENSION AGREEMENT