For me the problem disappeared, when I renamed C:\Perl64\site\bin\dmake.exe to C:\Perl64\site\bin\dmake.exe_
I don't want to have C:\Perl64\site\bin in my path...
Could it be, that the dmake.exe was installed, when I tried to install the Template module directly from cpan?