make tests pass on MinGW