conditional definition of POLLRDHUP for compilation on mac. references #5