Modifications for building with ghc 7.7

Built with ghc 7.7.20130117