Also get mingw cross-compilation of these tests working
wrote for sis, which has also exposed a few bugs elsewhere.