add clock_nanosleep support