fix issue with EOL for win32 and linux