Make sleep work on older versions of mingw.