Fix Ruby warnings.