CALF: fixed compilation with clang