tcp echo server, but theres osx related errors