added time.h for non windows platforms