ruby: more compile fixes