fix mac-os build.