Build exec graph for nanosleep and waitpid