Refactor to store defs in individual headers
Modifications due to changes in CHelpLib. There are some memory leak bugs due to the weird way in which LinkedList handles PTR valtype.