Fix msvc compile error