Backporting to MSVC10