#ifdef out S_ISDIR macro on Linux build.