fix ppoll with null timeout argument