Use posix_spawn() on macOS