Factor static method into cpp file to guarentee singleton.
More PANGOLIN_EXPORT annotations in gl.h