Move sleep funcs into separate file, so we don't include windows.h