moved time.h inclusion below the POSIX def