`rmdir` is usually defined in `unistd.h`, I wonder if it is so for mingw. 
I hope that there are as few `_WIN32` as possible.