Add a workaround for midi-jruby (0.0.12)