Fix compile error with msvc