fixed more compile warnings on Windows