Fixed a bunch of compiler warnings on Windows