Fixed all VS2010 /W4 warnings.