Haiku doesn't have sys/syscalls.h so our current implementation of spawn will not work. Specifically spawn_stubs.c.
Seems to be related to #5577
@rgrinberg is sys/syscalls.h even needed in that file? If the cygwin build works without it, then maybe it is better to remove?