Fix the nogui build when building with EGL
Merge pull request #104 from Sonicadvance1/Fix-EGL

Fix the nogui build when building with EGL