Converting file descriptor to I/O Stream on Linux [C++] | Hacker News Reader