improved configuration. openmp and libarchive are now optional and auto-detected.