added changes for compatibility with ghc 7.8
compatability with ghc 7.6.3 and 7.8
Merge pull request #2 from mstksg/master

Compatibility with GHC 7.8