Aparently gcc deletes the assignment operator for ofstream.