make generated code compile