Extensively changed the DEF file generator mkdef.pl to use a modified version