Fixed some build warnings.