compatibility with libcurl < 7.19.4 (bug reported by wreis)