AMENDMENT No. 4 to AMENDED AND RESTATED CREDIT AGREEMENT AND OTHER AGREEMENTS