Fix MSVC compilation