Add MPI and Pthreads