Fix --disable-threads.