Fixed compilation error on clang/gcc