fix friend issues in mpq/mpz