cmake: Rollup of srb2-side changes See merge request KartKrew/Kart!758
Not even the HAVE_LIBGME macro was defined apparently, huh.
Also support dynamic/static opengl switching