[flex] Fix compilation issue under mips-gcc-6.4
This was triggering a pointer-losing-constness error.