Updates for new pthreads, compilers