Finished first round of fixes for Visual Studio 2008 32-bit builds.