fix compile warnings.