Android build failures

The STL port of Android has several limitations for ofstream and
ifstream.