Show compiler warnings
Add queue
Add buffer
Rewrite to use pthread mutex and cond