Add the git commit (if applicable) to LyX version

This only works for autotools right now, but adding that to cmake is trivial
LYX_GIT_COMMIT_HASH is in config.h now