Check SCM_USE_PTHREAD_THREADS using #if not #ifdef.