Revert "MinGW compatibility"

This reverts commit 46a1244cc6d2ebbcfd1f934b2a3a0e9cab865153.