Server: Use nanosleep() instead of POSIX-obsolete usleep() in io.c.