ruby: fix compile