Fix build with MSVC