Made generated code compilling