net/vnc: Fixes for client code