updated lib/msgpack.rb to support jruby platform