I remember that there is `_mkdir` in Windows.
If you really want a re-implementation, please post those functions in a separate file, and add conditional compile/link in Cmakefiles