As noted in #21485, we checked for ffi.h yet then failed to throw an error if it is missing. Fixes #21485.