Currently libffi is built as ARM instead of thumb. The source supports thumb, we just need to pass the right compile flags.
As mentioned on IRC, I think removing these 3 lines should work:
Created attachment 558795 [details] [diff] [review]
Build libffi with the same flags as the rest
It looks like this has the desired effect.