unused: fix unused warnings from the GLSL parser
cmake: generate files during the build

Makes the configure faster and makes the build more solid by rerunning
the commands when the perl files change.

May not work on Windows due to the redirection.