Make everything work without pthreads