Fix connection error on *nix