When using recursive mutexes, linking with pthreads is required (?)