remove out of date cruft
fix 'export interface' problem correctly (by preventing the
exported interfaces from showing up in the parse 'declared items'
list at all)