added missing dependency (bind).
trivial mac-related changes
added metaclass?, attempt to make this work on apple (untested).
cleaned up setup script a little.
completed documentation.
setup script
resolved conflicts; macos fixes
class method lookup apparently works via class_getInstanceMethod in linux.