fix mac build error