Adapted settings in setup.py for Darwin platform (Mac).
Made methods static in beampy_carray.c where declared static in beampy_carray.h.