Build fix for some system which don't provide clock or usleep