Add libcurl macros in autotools build.