fixed build warnings.