Make code compile as cpp.