Don't define HAVE_LEGACY_GL when GLES is defined