apply workarounds for Visual C++ 2013 (compiles, but the tests crash)