Open database files using std::ios_base::binary in db_flatfile, which Windows can require