Added compatibility with clang