use libpari-gmp instead of libpari, part 2

see commit 72a0ac23712e575b62c15030f3a60a9f35690185 and issue #119

We have to build the shared versions of the pari library, because
that's the only one that is guaranteed to use gmp.  Hence we must
also build the shared version of mpir.