This should take care of most compile issues as well as busy loops caused by unhandled recv() calls returning 0 and general cleanups.
will simply cause the hub to close the connection. Fix problems with write events not being processed due to a read event taking presendence. Fix bug #86: Windows does not have "getrlimit()".