Changed struct -> class for consistency.

Avoids compiler warnings with newer compilers.
Turn off more warnings triggered by flex-generated code.