use generic windows/unix sleep interface