X11 requires pthreads for xrecord async.