Add both server and client code from TightVNC 1.3.10.