made changes to library gl files to support es2 context