Pass pthread objects around by reference, instead of copies of them by value, which breaks them (I know not why).
Ignore new run/debug scripts.