Upgraded to VS2008. Fixed build errors.