Update for GHC 7.8
Avoid 'hash' since it's not a pure function anymore
Build on GHC 7.6 as well as GHC 7.8