make the tests run for cross-compiled windows

when compiling with mingw .exe must be added to the binaries
and cmp will find difference in the line endings when running those
binaries under wine, so use diff instead there.