the old "configure" hack of adding "-ltermcap" to LIBS wasn't working (configure's too smart for that), so hack "configure" directly.