fix exports parsing
Fix PE exports parsing (adapted inisider patch) and some code cleanup