Adds getfd method to support socket.select