fix compiling errors for iOS projects