support both libunwind and glibc backtrace

Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>