Fix compile error on MSVC