fix mac build.