moved DWARF prototype reading to library_get_prototype()