genc.py is working about as well as it can be for now. The outputted code probably can't compile because necessary types/functions are missing, and hdr_parser.py can't parse those modules.