ruby: fix build when libyaml is present