fix for VC++ Cmpiler