Fix wrong test for MinGW.