Fix build error caused by removing SocketStream