Get a stack trace on Mac OS X as well

Building upon #11. Also gets stack trace on Mac OS X.