Despite being standard, it appears that `quick_exit()` is not available
on most non glibc platforms. In particular it breaks the tests build on
OSX.
This diff reverts D5254 in favor of D5232. Despite being more hacky, it (credits to @markblundeberg).
Despite being more hacky, it is more portable in definitive.