RT#87374: Test case for Windows line endings
Win32 CR+LF test PO and test script now fixed.

At least it works with Strawberry Perl 5.18 on MSWin32.
msys perl build seems a bit weird. Will test a bit more.
Remove some undefined variable warnings
Make test run also on perl 5.8.x
Now should work also on msys platform

For some reason, on msys ($^O == msys) when a line is processed,
chomp() doesn't remove a trailing "\r" character. This is in
contrast to what happens on MSWin32.

I decided to put a kludge fix in, so when we are on msys,
we explicitly strip the trailing newline characters from every line.

Only on msys, we also cannot check for perfect roundtrip output
because a newline gets appended to the end of the files (??)