Add support to OSX to capture callstacks.