Fix MSVC build with C++ EH enabled