added mac ffi support.