Backporting to MSVC 10