modify some compile option for mac and ios