got rid of 2 flex warnings about unused symbols + one const misuse

This brings the count of warnings to zero on my setup, ymmv based on your version of gcc and python I reckon.