Add a batch file to build on Windows with MSVC.
Fix warnings and compilation issues with MSVC.