fix some windows compile warnings