Fix compatibility to MSVC