compilation fix ofstream