cpoll: fix serious bug in NewEPoll implementation

a bug caused asynchronous read() and writev() calls to stall (never call
the callback) under certain circumstances
misc

mostly false deltas due to upgrade to new version of eclipse