Fix generation for glx and wgl

There are a lot of warnings due to the recent changes in rustc, but they are also present in gl code and will need another PR.