Allow Jruby

I needed to make these changes to get Spree to bundle on JRuby... anyone care to offer any other JRuby related improvements / suggestions?

NOTE: Deface master branch is now working with JRuby too: http://d.pr/i/xlzv