This adds a skeleton for threads.c and resolves #1