fix compile errors on older versions of Cabal
Merge pull request #81 from bennofs/fix-compile-errors

fix compile errors on older versions of Cabal