Add support for SVM_NUM_THREADS