Better way to recognise mingw64 in config script