Fixed linker errors and added libarchive headers.

Couldn't get linking to work with libarchive_static.lib so I built the
dynamic version which fixed it.
However, example applications from libarchive documentation crashes.