Removed pthreads workarounds