Fix libarchive build on MinGW