config parameter for pthreads library

and some more dependencies required by matrix.cpp