fix warnings under win.