git_version.h generator for *nix and other fixes