Support OS X (homebrew?) in ffi_lib

It appears that Ruby FFI isn't fully conversant with the idea of different
platforms having different naming conventions for libraries, so I've got to
do this by hand in my code.