WAIVER, CONSENT AND TWELFTH AMENDMENT TO REVOLVING CREDIT, TERM LOAN AND GUARANTY AGREEMENT