clang compilation error fix