enable WITH_THREADING support