Fixed some compile warnings.