OMNIBUS TWELFTH AMENDMENT TO CREDIT AGREEMENT AND FOURTEENTH AMENDMENT TO NOTE AND WARRANT PURCHASE AGREEMENT