[tools] only build gmp and mpfr when selecting gcc-4.3.x