tools: flex: fix segfault with glibc 2.26+