ghc-7.6 compatibility

`cabal test` passes for 7.6 and 7.8 at least