Fixed empty WriteLine not writing newline

Fixed empty WriteLine() not writing newline for C++98 and C++11.