osx: remove static variable
fix menu
osx: fix crash when called from bundle

The macosx_args code registers it's own application delegate so we ended up
sending unrecognized selectors when starting the event loop.