Buildfix for MIPS in debug mode.
Also, remove assumption that EGL means GLES2. My board supports EGL+Desktop GL too.