fix compilation warning due to new clang in Xcode 5.
simplify detection of OSXSDK and IOSSDK.