egl: fix egl extension checking