egl: set the EGL version in common code