fixes for building the archive file on windows