more robust poll object patching (works on Linux, *BSD & OSX)