fix for new avhttp and httpagent.hpp