mac osx requries time.h for time_t to be present