formatting
templated pthreads -- compiles on AMOS for phase-field and MC codes