changes to make the unit test suite run on mono.
Windows compatibility fixes for Matthias' Linux/Mono unit test suite changes.
Moved newline/directory separator fixup functions into a static helper class.