vc2012 write feature files with std::ios_base::binary