Hack to work around Pillow segfault if PyQt5 is installed