Fixing various build warnings.