fix windows compile warnings