Faster recompilation after changing version number

Reducing the number of cpp that reference version.h.