Only use stat's st_mtim on systems where it's available