ruby: compile fixes all around