Fix build system to include quadtree dependency