add mac os x support