libknc: don't flag EOF as true until output is completely flushed.
knc.c: implement timeout in accepting gss handshake.