Fixed a few compile warnings.