(Makefile) Make menu common code less dependent on HAVE_RGUI switch