Error in counter of waiting threads
Added init to Makefile