The names produced by addr2line are often incomplete. Fix this by falling back to nm to get function names and using the nm-provided name if it is longer.