fix warnings that "dir not in version control" and generate version.cpp with commit log when using git,rather than svn.
Merge pull request #110 from vonnyfly/master

fix warnings that "dir not in version control" and generate version.cpp ...
fix sed no -r option on mac
Merge pull request #121 from brianli/master

fix sed no -r option on mac