fix some build warnings.