fix vs 2010  compile error