Revert "Apply the same patch on MingW as we do on Windows"
This reverts commit 636c10fffa1e999c9e413fb47d774eda2fe19205.