Add file access flag defines to file.c when on windows