fix warnings under win