Removing curl/types.h include, adding timeout option.