solaris and unix linefeed fixes