Add git branch and HEAD defines in build system.