set binary mode for existing FDs on Windows (fixes some GHCi test failures)