improve compilation with clang