Line concatenation used tprintf, which uses vsnprintf, which is very inefficient in Linux, MINGW, but efficient using MSVC. Thus for the others a function cat2strings() is introduced, which uses memccpy().