Added ECLIB_EXT_NUM_THREADS macro