Runtime: Added check and fallback for accept4(2). accept4(2) is a system call available on current Linux and many BSDs, that allows for setting the close-on-exec and non-blocking flags on the resulting fd.