fix Windows compile warnings