make all examples compilable by clang