Fix MSVC warning
Warning fixes
Fix scons build on Windows