More efficient poll implementation for OS X