Implement generation for EGL and GLX

When you generate bindings for EGL, you need to define some platform-specific types at the same level as the macro call.