cpp: fix inclusion errors for keys