Removed TNCNX added mainsocket.pas as a temp wrapper not super tested because:
good news it compiles and runs!
bad news lots of the bitmap support seems to be "different"
http://forum.lazarus.freepascal.org/index.php?topic=20351.0 Palette handle is always 0 in vgaemu
and
http://wiki.lazarus.freepascal.org/Developing_with_Graphics Scanline support might be an issue (have to recode to use TLazIntfImage or RawImage etc.