Merge pull request #466 from gena-m/master

remove global exception handler.
fixes for the tests to compile successfully on macos