XR: fix build error for using EGL without GL(ES)
Amends a9184325f9c07996639ab2f0ac19e4b449c34ba5
XR_USE_PLATFORM_EGL will only be used for linux opengl/opengles.
For the 3rd party dependncy, EGL related types should be
defined before including openxr_platform.h for XR_USE_PLATFORM_EGL
Done-by: Peng Zhang
Fixes: QTBUG-143480
Pick-to: 6.11 6.10 6.8
Change-Id: Iff8238965849604817f282ae7a3b2efaf5444fdd
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Stanislav Aleksandrov <lightofmysoul@gmail.com>