Make compatible with http-conduit 2.x (copied from authenticate-oauth-1.5)