make it compile on precise using ghc-7.4.1 and http-types < 0.7