time: Move compat_time()/stime() to native