- adjust cookie handling to work better together with libcurl