(Bugfix) Initialize the queue's cond object.
Move to using -pthread instead of -lpthread with gcc.