Fix build flags for ios.