No functional change. It was not possible to build without threading support before. (cherry picked from commit 59eda029) (cherry picked from commit f69ae17e)