Warning fixes compiling with Visual Studio