move helper functions into a separate module
gemspec: use msgpack-jruby for jruby