Fixes for Ruby 2.2.0

For rubby 2.2.0.
Why would we need to set this if it's not defined by default?