Fix some warnings that turned up when attempting to compile with MSVC
Allow compilation using MSVC 2010 Express, both 32-bit and 64-bit