FOURTH AMENDMENT TO CREDIT AGREEMENT AND AMENDMENT TO SECURITY AGREEMENT AND PLEDGE AGREEMENT