added stack trace implementations for osx
adding application delegates and threading for osx/ios non-utility applications