generator: fix dlsym and opengl version checks
generator: add glad.gl