Get a stack trace on Mac OS X as well.
Added TODO.