Don't rely on transitively included headers

One must explicitly include what it need.
time.h for struct tm.
sys/time.h for gettimeofday, etc.

Bug: 37629934
Test: build

Change-Id: Iacd5317d958f61df062fca40fbf2e8992c7fbb44
8 files changed