CMake: add option to auto-regenerate script parser

When the option is ON, flexc++ and bisonc++ are automatically called
whenever lexer and parser source files are modified, as part of the
building process.

This assumes flexc++ and bisonc++ are in PATH.

The option is OFF by default.