THIRD AMENDMENT TO CREDIT AND GUARANTY AGREEMENT AND FIRST AMENDMENT TO THE WARRANTS