Support integer-gmp by auto-patching the few lines, rather than trying to use sed.