Flush I/O immediately with std::endl instead of \n