Added checks for libclang in CMakeLists

This should help supporting older libclang versions in which
clang_getExpansionLocation was not implemented.