fix a few compile warnings