CMake: Fixed build of libarchive under Linux.

Might work on Windows as well, still to be tested.