osx: Properly use app menu

Mentioned in #994
osx: Properly handle quitting