Add "b" to calls to fopen() that lack it (for Cygwin's benefit).
drwxr-xr-x - configs
drwxr-xr-x - doc
drwxr-xr-x - src