Make it possible to use std::ofstream and adapt to NS-3 version 3.48
SI
1d ago+64+64+01234567890123456789-9-9-0123456789
Fix std::ofstream by returning real fd from fileno() for cookie streams. Also use latest NS-3 release. The ofstream test is vibe-coded, but it fail without the correction and is minimal enough.
I have verified that the DCE results for projects we run are still good and valid after the NS-3 version change (3.46 -> 3.48). I got cmake problems running Ubuntu 22.04, not worth the time to investigate and try to fix (my opinion).
Feel free to modify the changes I have made as much as you like (or ask me to improve things).