Add support for Darwin (Mac OS X), fix bugs in exception handling.

Fix #1 with initial Darwin support. Unit tests now run correctly on Mac OS X. It works with Morituri on Mac OS X also.