Obtainde from NetBSD - Enable termcap. Chack tputs() after -ltermcap is detected (configure*). - Use mkstemp() instead of tmpnam(), for safety.