THIRD AMENDMENT AND LIMITED WAIVER TO CREDIT AGREEMENT AND SECOND AMENDMENT TO SECURITY AGREEMENT