Setup thread.c functions for access by synch.c