Fix a few windows compile warnings