meson: fix check whether both gles2 and opengl headers can be included

cc.compiles() doesn't support the prefix: kwarg currently, so it
never had any effect.

https://github.com/mesonbuild/meson/issues/2364
https://bugzilla.gnome.org/show_bug.cgi?id=787964
diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build
index 9762a09..68af27f 100644
--- a/gst-libs/gst/gl/meson.build
+++ b/gst-libs/gst/gl/meson.build
@@ -366,7 +366,9 @@
 # can we include both gles2 and opengl headers?
 if gles2_dep.found() and gl_dep.found()
   gl_include_block = gl_include_header + gles_includes + opengl_includes
-  if not cc.compiles('void f (void) {}', prefix : gl_include_block, dependencies : [gles2_dep, gl_dep] )
+  # TODO: Revert to passing gl_include_block via prefix: once
+  # https://github.com/mesonbuild/meson/issues/2364 is fixed
+  if not cc.compiles(gl_include_block + '\n' + 'void f (void) {}',dependencies : [gles2_dep, gl_dep])
     message ('Cannot include both OpenGL and OpenGL ES headers')
     if need_gles2 != 'yes'
       gles2_dep = unneeded_dep