scons: extract pkg-config information for libarchive and libcurl
scons: set c99 mode when compiling C and c++11 mode when compiling C++