Added EGL helper functions.