Windows mingw32: Fix finding of windres binary.
Windows: Make unit tests compile.