[GHC] #16055: libffi build logic is quite spread out