Fix macOs build