Adding pthread to SortCommon and moving kNumThreads to protected.