Added function that's implicit in the EGL spec and made more explicit in the surfaceless extension.
Fixed extension loading from the new, flattened structure.