Workaround std::ifstream being non-copyable with gnu libc++
Make eof private