Remove trailing spaces and newlines.

This simply removes trailing spaces and '\n' characters left by p0nce's
contribution of adding windows support.