Add poll() support to Solaris.