Fix Visual Studio compile error in C++ wrappers due to #include <exception> within extern "C" block.

Fixes SF #1340