Fix the nogui build when building with EGL