lib/curl: fix missing import of string.h and clean up header