Add workaround for msvc, spotted by mispp