Support windows open mode for log file
Support windows open mode for log file

The code that opened the file inadvertently used Unix-specific macros to
specify permissions of the log file.

RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine