Update sys.c

fix build errors.