Corrected VS2010 warnings. Texturing needs more work.