Added unistd.h and slightly modified sched.c (test functions)