[WIN32] changed: use a temp dir for the downloaded deps and use more cmake specific commands and variables.