fix compatibility with newer clang