add explicit pthread dependency only on windows