Fix build error on MSVC