gmp: import from packages, update and reduce size