fix some errors about generate library xcode project in mac x os