Initial steps to bootstrap nix on SmartOS

Temporarily modified paths for SmartOS base64 1.8.2 dataset
  in pkgs/stdenv/native/default.nix

Make several base packages compile on Illumos/SmartOS:
 - perl, ncurses, gzip, gnugrep
 - git, gnutar (root build)

Version update:
 - gettext, gzip, less, gawk, gnugrep, gnused

Added bison 2.7

Borrowed ncurses patch from pkgsrc from
 https://github.com/joyent/pkgsrc/tree/trunk/devel/ncurses/patches
Package updates and Illumos compatibility fixes.

Add is64Bit checks to stdenv for Solaris.

Updates:
- GNU Coreutils 8.21
- OpenSSL 1.0.1e
- SQLite 3.7.15.2

Fixes: openssl, gnumake
Attempt at getting GCC 4.7 compiled on Illumos...

No success yet :-(
GCC 4.7.2 + updated libraries compiles on Illumos/SmartOS!

- Add solaris native ld support to GCC build wrapper
- Add solaris ld wrapper that fixes -L argument order

- Revert sqlite version as newer is completely broken on solaris (disk
  I/O errors everywhere).
Update to PCRE 8.32 with JIT enabled
Update CPIO to 2.11
Fix GZip build on Illumos
Add updated GMP 5.1.1.
Merge branch 'illumos'
Merge branch 'master' into illumos-boot