Fixed OSX build.
Fixed iOS build.