Add a ghc 7.8 hack
Change some signatures to take bytestrings