Adapt mac os x.

Signed-off-by: YunchaoChen <ycchen@YunchaoChens-MacBook-Pro.local>