Fixed warnings which are treated as errors on std build
Distinguishing between iOS and OS X