cpp: add tool to inject namespace