Use abort() if _HAS_EXCEPTIONS is not defined.
Use std::abort() if exceptions are disabled.

Fixes #47.