Fix warnings in gl_generator

Fix the deprecation warnings in gl_generator, especially now that cargo prints all the warnings while compiling dependencies.