Fix compilation of generated code.