Fix compilation with msvc