Fix compilation error on MSVC