Add cmake, libspatialindex and rtree