Fix socket compile errors

Initial test of socket class. Now builds and seemse to work.
Tested constructors, initialize and waitforconnect