Use a common way to check for the presence of both Windows and MinGW packages. (dm)