optimize setup.py for mac os