fixed the build on machines which need gmp, mpfr, mpc.