[PATCH] server: ifdefs guards for unistd.h and sys/types.h