Forward-port from 1.4 branch: Make generated rpc files build-depend on event_rpcgen. svn:r626
Rewrite win32.c to use a red-black tree to map sockets to events. This changes the performance from O(N^2) to O(N lg N). Needs testing. (This was made possible by recent changes to the implementation of non-persistent events.) svn:r574