Modifying code to enable compilation with QUAD_PRECISION without errors (does not work yet for CGAL enabled)