gl: Fix compilation with GLES2
examples/clutter: Include gst-plugins-base CFLAGS and LIBS to fix uninstalled compilation
examples: Stop using deprecated GLib thread API