[GHC] #7992: Wrong invocation of configure script in libffi and integer-gmp