add VS 2013 support for C++ template
fix win32 template project
additional fixes for win32 project
Merge pull request #7666 from zawasp/template_fix

Template fix