CURL_PULL_SYS_TYPES_H instead of HAVE_SYS_TYPES_H in curlbuild.h; the cmake build is a bit of a mess