Better MinGW detection