add Pthreads for graingrowth.cpp