fixes build for curl version < 7.21.6