Various cleanups and fixes

- moved string from DynClass into DynClassEntry
- export fixes
- fix modules not being deleted in DynLoader::CloseLib