Fix some warning on windows with MSVC
Almost get build on windows