Ruby FFI binding for libmagic