Made submenus work in native dialog menus on OS X.