add conditionals to Makefile and setup.py for OS X variant