Support building with ghc 7.7.20131121

Also tested against ghc-7.4.1 and ghc-7.6.3.