fix: win include for S_ISREG