support new TCPSocket API; revert to nsIProcess to fix regression