Call define_method using send, instead of directly

works around https://bugs.ruby-lang.org/issues/8284
makes tests pass on 1.9.3
Merge pull request #35 from ccahoon/master

Call define_method using send, instead of directly (fixes 1.9.3 compatibility)