Move time setting to syscall.c and add syscall fallback.