IAT/EP stub builder copier

Also some minor restructuring