Fixed some MSVC incompatibilities

- Resolves bugreport:8289
  http://hercules.ws/board/tracker/issue-8289-compile-error-vs-2013/
- Disables some winsock-related deprecation warnings.

Signed-off-by: Haru <haru@dotalux.com>