Fix building with cabal
Fix building with GHC 7.8.