Negotiate EGL reference counting

Especially for Wayland, it is highly desirable to use a reference-counted EGL context, so that the window provider can also use EGL with the same parameters as VLC.