fixed dylib paths on OSX and changed the type of GLHandle from int to GLuint