Support for sleep, usleep, nanosleep and uart_flush.