AMENDMENT NO. 2 TO FOURTH AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT TO SECURITY AGREEMENT