Fixed ruby compilation issue