Adjust C++ templates for use of VS2013 on Windows.