OS: Fix connect(), and implement read(), write() & send() on compat socket.

These are needed for Open.socket to work correctly...
Merge pull request #80 from kennytm/os-compat-socket

Fix OS.connect, and implement read(), write() & send() on CompatTCPSocketClass