Fix compilation errors for generated code.