Fix build on msvc