fix mac build