Fixed a bunch of unused variable warnings when compiling with Visual Studio 2010 at warning level 4.