define_methods was changed to private method in Ruby 2.1.0
Merge pull request #1124 from hsbt/fix-call-private-method

fixed failing spec running with ruby-trunk