Fixed load order and call ffi_lib only once now