Properly handle pthreads