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
What do you mean by sh compatibility?  The patch updates to bash because most configure scripts say they want /bin/sh and then go on and use bash specific (or at least non-ksh supported) features...