add exception support to non-Windows platforms
suppress clang warnings on external code