Fix I/O for non-blocking file streams on OSX
Allow writes to files other than stdout
Fix incorrect format string specifiers when writing to files
UTF-{16,32}{BE,LE} encodings do not overlap with native endian encodings
Replace a *string = '\0' check with IsEmpty
Standalone/installer startup fixes