[trunk] Fix compilation on MSVC compiler