scripting: report line number in syntax error message

Also, rename couple header files to have standard extensions.
CMake: force source-header dependencies for script parser files

Apparently, CMake does not automatically recompile source files generated
by flexc++ and bisonc++ when the headers that they include change.
This commit explicitly requests CMake to do so.