Add support for ruby 1.8 - public_send becomes #send, use class_eval for define_method, etc.