Added Visual Studio project for Windows build

Also fixed a couple legitimate complaints from Visual Studio's compiler