fix gdb backtrace on FreeBSD