Fix various warnings.