Even more fixes for release builds.
And even more release prep.
Regenerate version.hpp if tags are added to the git repo.