Move poll() to posix shared.