Fix warning on assigning from `const char*` to `char*`
Allow error reporting routines to accept varying number of arguments in modern style
Use YY_CHAR macro instead of `char` type in places where processed text is stored
Add test cases for charset support
Add implementation for charset support
Extend test-charset to check C++ scanner too
Make charset support working with C++ scanners too