cpp: fix clang build