Fix windows compile warnings.