fix compatiblity with clang