Fixed thread ID stuff in libbacktrace