enable pthreads in the CPP compiler, breaks in vagrant otherwise.

We can either pass -pthread to the cpp or disable pthreads with --disable-pthreads in the ./configure; or you can rebase and use the latest phashion which already has this fix.