EXHIBIT 10.5 THIRD AMENDMENT TO CREDIT AGREEMENT and FOURTH AMENDMENT TO LETTER LOAN AGREEMENT