fixed crash seen in DEBUG mode: added __USE_W32SOCKET to DEBUG APL build
merged changes