TWELFTH AMENDMENT TO CREDIT AGREEMENT AND FIFTH AMENDMENT TO PLEDGE AND SECURITY AGREEMENT