More MSVC adjustments, now focuses on the libvncserver

The previous pull request was focused on the libvncclient, to allow it to compile on MSVC.
Now I've done the same with libvncserver.
I am still not finished with the tightvnc-filetransfer part, because there's much more work there, but I've done most of it. Other parts of the server are now compiling.

* A sample MSVC project is now in the repository, but without bindings to ZLIB or LIBJPEG as the user has to compile them, add include directories and set the relevant preprocessor definitions.