Enable demo.cpp to compile with clang