cpp: compat: Add boolean type