Added support for ios compilation.