add cgal dependency and fix clip