build fixes
upgrade: ghc 7.8.2.