Removed static in thread.c