Fix generation for 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.

cc #134