fix darwin build