Visual Studio 2008 build fixes