Require Memory extensions only on jruby