Refactor stubs.cpp to thread.c