fix the console/GUI issue with tlink32 which prevents _lwrite to print string to the console