fix build issues by adding include to time.h