ruby: compile fixes