tevent: avoid -Wtautological-compare errors with gcc6