fix building with latest Bitcoin master. Add reference to Json.