Debug utilities for mt
Fixing Thread::attach