Fix haskell-cgi build with old versions of GHC.