scons: check for existence of libarchive and libcurl
scons: add options for building static or shared libraries / binaries