server: Use syscall(2) instead of inline assembly on Mac OS, too.