dev-lang/ghc: fix integer-gmp crashes and miscomputations in UNREG builds

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>