[Win32] Implement events shutdown in lieu of pipes
Windows is not able to select() for read on unnamed pipes. Move to an
event-based scheme where signaling can come from a shutdownEvent or
readable data on a socket.
Included some clean-up of preprocessor macros.
Change-Id: I7db3235a6c870c97c9c317f833f2d8682fd9ce70
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5521
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>