First small bunch of jruby fixes

During the next two weeks, you will see me making some fixes to get Katello running under jruby. During reviews, please focus on the fact I should not change ruby 1.8/1.9 behavior. I just want to get it running.

Thanks