fix system tray menu example to work on mac