Bug fixes for running echo client on OSX