Fix some compile warnings.