Add support to dump backtraces via signals.