Fixed compilation with clang