import and adopt clang-3.2. fix up patches