Hello:
I could help you in the rebuilding of the import table, because I have been coding a procedure that perform that task, and it is working fine. But without the possibility of testing it, I don't know how could I help you.
About Armadillo I have never been facing it, so... maybe there will be another forum members that could help you.
Cheers
Nacho_dj