fix for compilation with clang