math/libpoly: Do not build tests by default
(cherry picked from commit d093c25c0fe9af1925619cb6a9748d88ff7b38f7)