redefine fmpz_invmod to consider any integer invertible mod 1 (for gmp 6.0 compatibility)