Add the git commit (if applicable) to LyX version

Addition to cmake.
Patch mostly from Stephan Witt.
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.10.11-10.00