VS10 warnings fixes
VS10 warnings fixes