Hack to fix compatibility with Ruby 2.0 (breaks <1.9)