Fix build failure with -Wextra -Wunused GCC options since it happend on FreeBSD current.
Fix build failure with -Wshadow GCC option since it happend on FreeBSD current.
Fix build failure with -Wmissing-prototypes GCC option since it happend on FreeBSD current.
Fix build failure with -Wcast-qual GCC option since it happend on FreeBSD current.
Don't do direct comparison of timestamps that
are in local time.

SVN-Revision: 4198
If a zip archive file is corruped, the compression type can be negative and
it can cause a segfault.
Fix build failure in aggressive warnings
Fix remaining build failure on FreeBSD Current.
Fix build failure in aggressive warnings on FreeBSD/amd64.
Fix issue 237.
Properly set a clear error message when archive_{write,read}_set_options failed.
Fix build failure on FreeBSD/powerpc64.
Fix issue 241:CAB decompression not 64bit compatible.
Fix issue 242:libarchive-3.0.3 fails to build with --without-zlib
Fix test failure without zlib.
Issue 243: CAB decompression doesn't work when libarchive build with MSVC2010.
Prevent unexpected code optimization from MSVC /O2 option.
It made CAB reader fail to decompress LZX.
Improve test utilities to correctly detect the Windows style of full path that starts with "c:\".
Building full path name in test utilities should use memmove instead of strcpy because it is
possible that an original path name should overlap itself when moving the path.

SVN-Revision: 4040
Fix a format parameter for a wide string in archive_write_disk_windows.c.
Correct console I/O on Windows. Use CONIN$ and CONOUT$ instead of /dev/tty.
Properly remove leading slash letters and Windows drive letters in cpio.
On Windows, it is possible that the program name should have a slash '/'
character not only a backslash '\' character. We have to check both
a slash and a backslash to get the running program name of bsdcpio or
bsdtar.