compiler fix in thread.c, process.c, list.h, scheduler.c