Fix Android compile failure: st_mtim, UTIME_OMIT

Use utimes(2) instead of utimensat(2), use struct timeval instead of
struct timespec

Add strbuf helper functions for struct timeval and time_ms_t