fixed compilation on MSVC