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
When bash is invoked as /bin/sh it enables sh compatibility. That's why on linux we keep using /bin/sh. It seems that illumos supports chroot, am I wrong? http://illumos.org/man/1M/chroot