Fixed compile warnings.