plugins/jvm: fix building with ruby1.9 as system default