Fixed a few VS2010 build warnings