Auto detect threads on win.