Fixed windows compile warnings at warning level 4