Adjust CMake module to provide correct deps on OSX

libGL doesn't appear to exist on OS X, so I've changed the CMake module to give -framework OpenGL as the dependency, which seems to link correctly.