Added support for OS X system menu. No testing yet.