fixed compilation with clang