fix compiling error of iOS