Socket code.

Socket test code. Win ffi definition filese were copied directly from
LJIT2Win32.