Add basic backtrace functionality

Whenever a failure happens, if a program is run with
`RUST_LOG=std::rt::backtrace` a backtrace will be printed to the task's stderr
handle.

Currently this is not an exported interface because it's only supported on
osx/linux. I found that windows/freebsd/android all required extra libraries
which are not necessarily present by default.

cc #10128