[c] update sample with c90 and _BSD_SOURCE for usleep warning