Add reduced version of getcap routines, so sysinst need not drag in the database goop via libtermcap.