[indicator-appmenu] Fix build with glib <= 2.35.x