dev-lang/ghc-7.8.1: backport fixes for cpp crash and typechecker failure

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