Changes in the socket API to reflect differences between different socket types.
Fix of problems in the Win32 support.
Add support for event library Windows.
Fix a bug in the event library that caused the use of an unitialized pointer as space to store information about the event object (socket's file descritor).