fix run with !CMAKE_THREADS