fix some compile warnings