libffi: fix closures in OS X