THIRD AMENDMENT TO CREDIT AGREEMENT AND SECOND AMENDMENT TO PLEDGE AND SECURITY AGREEMENT