Add "b" to calls to fopen() that lack it (for Cygwin's benefit).