Restored events locale setting for output.
Fixed menu bar for non-bundled OS X applications.

The menu bar for non-bundled applications did not become visible until
it had lost and regained focus.  This is fixed (somehow) by letting the
NSApplication run loop start and stop.

Technique by scoopr.
Merge remote-tracking branch 'upstream/master' into travis-linux-x86