[1.6.x] Made skipping of symlink-related makemessages test smarter.

os.symlink() is available starting with Windows Vista but can fail at
runtime.

0f46ec315e from master.
[1.6.x] Made test for issue 19552 compatible with Windows.

Take in account platform path separator. Refs #19552.

651bed0918 from master.