compiler: cpp: add override keywords