Fixing MSVC compilation