try to fix macosx compile