cmake: verify existance of hg repo
cmake: take revision from git if within a git repo
cmake: .pc file is useful as well when using static libs