use CMAKE_CXX_COMPILER_VERSION to get clang version
change the minimum CMake version to 2.8.8 to support CMAKE_CXX_COMPILER_VERSION