enable pthreads in CPP