Changes for compatibility with Visual Studio 2008

Preceding VS versions are not likely to work.