Make the MinGW compiler detection "smarter"