fix compiling on iOS