[win] Fix some compile warnings.