THIRD AMENDMENT AND WAIVER TO AMENDED AND RESTATED CREDIT, SECURITY AND GUARANTY AGREEMENT