Add git-version.c generation to CMake.
Fix iOS / debug ARM build.
Force libc++ on Mac, needed for Xcode 4.6 at least.