Fix to work on MSVC