improved configuration. openmp and libarchive are now optional