Fixed bug FS#74, changed C api macros to catch all std::exception