SmartOS fixes, HAProxy 1.5.3, tinc 1.1-git, and some package updates

This is the cleaned-up version of: https://github.com/NixOS/nixpkgs/pull/2117
Illumos supports chroot, but nix chrooted builds are implemented using linux specific stuff.

`/bin/sh` compatibility is actually preventing many builds to success. That's I'm patching it.
KSH is also `/bin/sh` compatible...