time.h fix for ubuntu