Workaround for pyobjc/pyinstaller compatibility.