fix run in win xp
(http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx)