Attempted to add mac support

hopefully this should fix issue #5