Rewrite EGL config choosing