gl_generator: support passing in extensions