fixed some compile warnings.