FOURTH AMENDMENT TO CREDIT AGREEMENT AND THIRD AMENDMENT TO SECURITY AGREEMENT