GCC raised a warning "mpz_inp_str_nowhite not defined, defined implicit" and directly afterwards error on the conflicting definition.
I've actually not checked why it is not defined nor why the implicit definition is different - but swapping these two functions lead to a working compilation...