add poller and better select functions patching

note: first step for implementing the net API.