improve error messages from build of libcurl statically