Windows: correct detection of EISDIR in mingw_open()