Fix a few compile warnings.