Fix MINGW logic. should be ifdef, not ifndef