fixed for VC++ windows