make it build with ARCHIVE_SUPPORT