Replaced WITH_PTHREADS with HAS_MULTITHREADING in source