Work around bugs/problems with MinGW builds of graphics libraries