small patches for pyinstaller support on mac