Fix non-windows compilation
Silence msvc warnings