Add support for optimization with clang