Use ffi_lib_flags to fix issue while loading the support library