Fixed MSVC compilation