Log Message: Fix build of math/xylib on gcc 6 and above gcc 6 and above inmplicity uses c++14 so use std::shared_ptr.