Clang compilation bugfix