dwarf: fix warnings on linux