Capture: allow overriding stack capture depth

After noticing some frames where missing, I changed the default to 10
and made it overridable. It now also outputs a string to let you know
that a stack capture failed to find an external call-site.