Compilation fixes.
Adding one previously disabled test at test_sem.c
Intermediate state.
Polished code, compilation fixes.
Test added for waitqueue