curl: Use autoconf script to generate config headers on Linux

When the RUN_CURL_CONFIGURE variable is set, use the curl configure
script to generate curlbuild.h and curl_config.h instead of using
pre-cooked ones.  Enable only on Linux for now.
Merge pull request #976 from zeldin/curl-configure

curl: Use autoconf script to generate config headers on Linux