Safe git version information (the c++ part).

This puts the git version information in own namespace and make use of `std::string` instead of char arrays.

If you think the namespace `BaseLib` would be more appropriate, just drop a note; I'd make a nested namespace `BaseLib::GitInformation` then. Other possibility is `BaseLib::BuildInformation`.