Added support for e and h in the register flags (was only there in poll), and support for POLLRDHUP linux extension
Fixed usage of poll flags