Use mkdir macro also in case if mingw32.

This fixes bug 676511.