check for curl headers in configure script
add autogen.sh
use autogen.sh in travis runs
call curl_global_cleanup() also when cleaning up curl