Fix build when various clang feature flags are enabled/disabled