workaround for ffi issue
workaround for netbsd