cleanup code
use new macros for accessing imp_mod_handle <-> mod_handle
and imp_mod_handle <-> in_idx
add macros for access to module mapping array for dwarf format
correct prototypes