ismindex: Include direct.h for _mkdir on windows