cpp: compilation fix