Cpp: Ensure that the compile_error counter gets incremented. As there is code that relies on the counter being incremented on error (eg the macro expansion), move the increment to code that can not be overridden via overloading.