Fix dup3 and accept4 on Darwin