Numerous fixes to glx and wgl C generation

This removes all compile warnings and errors from the generated GL, GLX and WGL C code.
It also adds support for WGL and GLX extension checking via the same mechanism normal GL uses.
The most impactfull change this has is that the gladLoadGlx/Wgl functions need additional platform specific parameters.