egl: rewrite entrypoints check