fixed some more compile warnings on Windows