Check os, if os = OSX then generate menu in mac menu bar, else generate menu in GUI