THIRD AMENDMENT, CONSENT AND WAIVER TO THE LOAN AND SECURITY AGREEMENT