FIFTH AMENDMENT TO TERM LOAN AND GUARANTY AGREEMENT