Fix Linux-related issues

1) Get rid of tester executable file extension.
2) Fix two memory corruptions.
3) Support all kinds of line endings in tokenizer.
Fix tester whitespace issue

Do not ignore line endings differences during test results
comparison, just convert all of them to LF.
Also use 'cmake -E compare_files' instead of 'diff'.
Fix memory leak