Compiling.  Needs pthreads instead of C++ threads.