remove dependency on sys/time.h