Fix sample-plugin build with newer clang versions