Update glgen_gl.c/h.

Update glgen.py so it adds the OSX checks to avoid having to hand hack glgen_gl.c.
Also updated against latest glext.h. Builds fine on Windows and Linux, please merge if it builds on OSX as well.