def and define_method return the method name.

Ruby 2.1 returns the method name's symbol from `def` and `define_method`.
As the previous return value was nil, this should cause few compatibility
issues.