Only concatenate CXX_FLAGS in makefiles.
Add git commit information to version info in binary.