Updated Xcode samples. Found bug in TcpServer sample (OSX only).