Added support for Mac global menu

Finally a fix for #223