Fix compilation with msvc compiler