Use correct type for poll on Mac/FreeBSD, fixes ticket #7714.

Thanks Kazu Yamamoto for submitting this patch.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Merge branch 'master' into nokinds