Fix pink tinge on 16 bit servers (and upgrade to VS2013)

Copy of commit to VncSharpNG (and upgrade to VS2013, and add .gitignore)

https://github.com/rmcardle/VncSharpNG/commit/8ef5aaa83c4217d067e7b72dda77f96a2b66c19f
https://mremoteng.atlassian.net/browse/MR-119