Fixed compatibility with clang