enfore the EPOLLOUT flag if we have an output callback registered

+ minor cleanings