fixed compatibility with curl < 7.16.2