fixes to build by Open Watcom toolchain

sorry, I forgot switch off formating for another project

This contains changes which ensure libarchive be buildable by Open Watcom toolchain.