CONSENT AND THIRD AMENDMENT TO CREDIT AGREEMENT