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
How about the following: (maybe someone has a better idea?)
```bash
    if [ -z "$dontFixBuildShell" ]; then
        # Patch all configure and libtool* scripts to guarantee that Bash is used.
        find $NIX_BUILD_TOP -perm -u+x -type f \( -iname libtool\* -or -iname configure \) | while read i; do
            echo "fixing shebang in $i"
            sed -i -e "s|#! /bin/sh|#! $SHELL|g" -e "s|#!/bin/sh|#!$SHELL|g" $i
        done
    fi
```