dev-haskell/cgi: attempt to fix Issue #297

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