fix build problem for iOS