Set some platform-dependent I/O mode flags needed in CGI mode (fixes #2066 and #2052)
Authored by: mgood 2005-09-20
Parent: [r2259]
Child: [r2261]