Butcher the code for MSVC compat