Fix rt_LIBS reference and use gmp_LIBS in pc.