Fixes some build warnings.