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

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

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