Fixed MSVC compiler warnings.

Everything builds without warnings on Win32, x64, and ARM.