Fixed most tkserv brokeness.

Signed-off-by: sd <sd@hysteria.cz>