libknc: improve errors connecting to hosts.

We modify knc_generic_error() (used internally, only) to take a
sprintf-style format string and arguments and use same to provide
more informative errors for name lookup issues.