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

These are needed for `Open.socket` to work correctly, at least for the examples in http://www.mozart-oz.org/home/doc/op/node12.html.