Clean up OFStream and OFSocket interface.
This allows better compile-time checks.