generator: reduce code duplication
generator: make GLVersion a global
glad: update readme reflecting GLVersion beeing global