add linking directive to opengl libraries in for cmake

fix OSX linking error on gwen.dlyb when compiling using cmake