Generate version number as direct constant in the C++ generator.