fix compile error flagged by latest clang++ 3.4.
fix warnings flagged by latest clang++ 3.4.
fix warning coming from latest clang++ from Xcode 5.
xlc compiler on OSX is not anymore supported.
simplify detection of OSXSDK and IOSSDK.
set MACOSXVERSION also when cocoa is disabled.