segment performance optimizations + CMakeLists.txt update to support Clang 3.2