libarchive: *permanently* fix patch source and hash

Unfortunately github's *.patch URIs contain version of git generating them,
which changes from time to time. It seems that *.diff doesn't suffer from that.

Conflicts:
	pkgs/development/libraries/libarchive/default.nix
xcode: fix hash
optipng: use system libpng & zlib, fix cross builds and add support for static builds
libjpeg_original: add optional static builds
gifsicle: add optional static builds, make gifview optional
Merge pull request #2087 into cross-win-osx.

Thanks to @offlinehacker for the fixes.

* 'crossdev' of github.com:offlinehacker/nixpkgs:
  gifsicle: add optional static builds, make gifview optional
  libjpeg_original: add optional static builds
  optipng: use system libpng & zlib, fix cross builds and add ...
  xcode: fix hash
  libarchive: *permanently* fix patch source and hash