Fixed type of stack trace variables.

Fixes compile error when using backtrace enabled threads.